﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace ProcDaemon.Configuration
{
    public class Children : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new ProcessSection();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((ProcessSection)element).path;
        }

        //public ProcessSection this[int i]
        //{
        //    get
        //    {
        //        return (ProcessSection)base.BaseGet(i);
        //    }
        //}

        //public ProcessSection this[string key]
        //{
        //    get
        //    {
        //        return (ProcessSection)base.BaseGet(key);
        //    }
        //}
    }
}
